package com.atguigu.ssyx.acl.service;

import com.atguigu.ssyx.model.acl.Permission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface PerMissionService extends IService<Permission> {

    List<Permission> queryAllPermission();

    void removeChildById(Long id);


    //获取所有角色，和根据用户id查询用户分配角色列表
    Map<String, Object> getPermissionRoleId(Long roleId);


    //为角色进行分配菜单
    void saveRolePermission(Long roleId, Long[] permissionId);
}
